package com.SouthernWall_404.AgeSuitcase.Common;

import com.SouthernWall_404.AgeSuitcase.Common.event.GuiEvent;
import com.SouthernWall_404.AgeSuitcase.Common.event.test;
import com.SouthernWall_404.AgeSuitcase.Common.init.ModCreativeModeTab;
import com.SouthernWall_404.AgeSuitcase.Common.init.ModItems;
import com.SouthernWall_404.AgeSuitcase.Common.init.ModSounds;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

// The value here should match an entry in the META-INF/mods.toml file
@Mod(AgeSuitcase.MODID)
public class AgeSuitcase
{
    // Define mod id in a common place for everything to reference
    public static final String MODID = "age_suitcase";


    public AgeSuitcase()
    {
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
        ModItems.ITEMS.register(modEventBus);
        ModSounds.SOUND_EVENTS.register(modEventBus);

        ModCreativeModeTab.CREATIVE_TABS.register(modEventBus);
        MinecraftForge.EVENT_BUS.register(test.class);
        MinecraftForge.EVENT_BUS.register(GuiEvent.class);
//        MinecraftForge.EVENT_BUS.register(SoundEvent.class);


//        InterModComms.sendTo(CuriosApi.MODID, SlotTypeMessage.REGISTER_TYPE, () -> SlotTypePreset.BELT.getMessageBuilder().size(1).build());

//         InterModComms.sendTo("curios", SlotTypeMessage.REGISTER_TYPE, () -> new SlotTypeMessage.Builder("hip")
//        		.icon(new ResourceLocation("curios:slot/empty_hip_slot"))
//        		.build()
//        		);


    }



}
